package com.basiclib.inter

public interface IPresenter<V:IMvpView>{
    /**
     * Presenter与View建立连接
     *
     * @param mvpView 与此Presenter相对应的View
     */
    abstract fun attachView(mvpView: V)

    abstract fun registerLifecycle()

    /**
     * Presenter关联View生命周期 onStart
     */
    abstract fun onStart()

    /**
     * Presenter关联View生命周期 onResume
     */
    abstract fun onResume()

    /**
     * Presenter关联View生命周期 onPause
     */
    abstract fun onPause()

    /**
     * Presenter关联View生命周期 onStop
     */
    abstract fun onStop()

    /**
     * Presenter关联View生命周期 onDestroy
     */
    abstract fun onDestroy()
}